/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 用户个人设置表
 * 
 * @author aeky
 */
@Entity
@Table(name = "T_SYS_USER_SETTING")
public class UserSetting {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "ID", nullable = false, unique = true)
    private Long id;

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "USER_ID")
    private User user;

    @Column(name = "MODULE_LEFT")
    private String moduleLeft;

    @Column(name = "MODULE_RIGHT")
    private String moduleRight;

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the moduleLeft
     */
    public String getModuleLeft() {
        return moduleLeft;
    }

    /**
     * @param moduleLeft the moduleLeft to set
     */
    public void setModuleLeft(String moduleLeft) {
        this.moduleLeft = moduleLeft;
    }

    /**
     * @return the moduleRight
     */
    public String getModuleRight() {
        return moduleRight;
    }

    /**
     * @param moduleRight the moduleRight to set
     */
    public void setModuleRight(String moduleRight) {
        this.moduleRight = moduleRight;
    }

    /**
     * @return the user
     */
    public User getUser() {
        return user;
    }

    /**
     * @param user the user to set
     */
    public void setUser(User user) {
        this.user = user;
    }

}
